package task3

class Project {
    String name

    static belongsTo = [department: Department]


    static hasMany = [people: Human]

    static constraints = {
        name(size: 3..20, blank: false, unique:'department')
    }

    String toString(){
        "${name}"
    }

}
